package com.guigu.youxuan.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author liweixin
 * @since 2024-05-15
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("warehouse_details")
public class WarehouseDetails implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键，自增id
     */
    @TableId(value = "warehouse_details_id", type = IdType.AUTO)
    private Integer warehouseDetailsId;

    /**
     * 仓库id
     */
    private Integer warehouseId;



    /**
     * 仓库名称
     */
    @TableField(exist=false)
    private String warehouseName;

    /**
     * 供应商名称
     */
    @TableField(exist=false)
    private String companyName;
    /**
     * 商品id
     */
    private Integer goodsId;

    @TableField(exist = false)
    /**
     * 商品名称
     */
    private String name;

    @TableField(exist = false)
    /**
     * 商品图片
     */
    private String imgLink;

    /**
     * 供货商id
     */
    private Integer supplierId;

    /**
     * 应入库数量
     */
    private Integer amount;

    /**
     * 实际入库数量
     */
    private Integer realAmount;


    /**
     * 当前存储量
     */
    private Integer nowAmount;

    /**
     * 删除标记（0:不可用 1:可用）
     */
    private Boolean isDeleted;


}
